﻿#include "hardware.h"
#include<iostream>
using namespace std;

hardware::hardware()//管理硬件，负责吐饮料和补货
{

}


void hardware::admin()         //管理员后门补货
{
    cout<<"请输入管理员密码："<<endl;
    cin>>tempcode;
    if(tempcode==code)
    {
        cout<<"password correct. Open hatch"<<endl;
    }
    else {
        cout<<"password false,retry"<<endl;
    }
}


void hardware::hardware1()     //推杆1,推出可乐
{
    cout<<"trade over,cola pushed"<<endl;//其他方法去物品选择+确认支付
}


void hardware::hardware2()     //推杆2，推出雪碧
{
    cout<<"trade over,sprite pushed"<<endl;
}
